package g11.model;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

public class VisitationContent implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5309044262598354956L;
	private Integer visitationContentId;
	private Visitation visitation;
	private String diagnosis;
	private String treatment;
	private String comment;
	private Timestamp lastModified;
	private Integer version;
	private Set<Prescription> prescriptionSet;

	public VisitationContent() {
		Set<Prescription> newPrescriptionSet = new HashSet<Prescription>();
		prescriptionSet = newPrescriptionSet;
	}

	public Integer getVisitationContentId() {
		return visitationContentId;
	}

	public void setVisitationContentId(Integer visitationContentId) {
		this.visitationContentId = visitationContentId;
	}

	public Visitation getVisitation() {
		return visitation;
	}

	public void setVisitation(Visitation visitation) {
		this.visitation = visitation;
	}

	public String getDiagnosis() {
		return diagnosis;
	}

	public void setDiagnosis(String diagnosis) {
		this.diagnosis = diagnosis;
	}

	public String getTreatment() {
		return treatment;
	}

	public void setTreatment(String treatment) {
		this.treatment = treatment;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Timestamp getLastModified() {
		return lastModified;
	}

	public void setLastModified(Timestamp lastModified) {
		this.lastModified = lastModified;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Set<Prescription> getPrescriptionSet() {
		return prescriptionSet;
	}

	public void setPrescriptionSet(Set<Prescription> prescriptionSet) {
		this.prescriptionSet = prescriptionSet;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public boolean equals(Object obj) {

		/*
		 * add by Fern
		 */
		VisitationContent other = (VisitationContent) obj;
		if (this.visitationContentId == other.visitationContentId) {
			return true;
		} else

			return false;
	}
}
